package com.weirdor.boot;

import com.weirdor.boot.admin.listen.ApplicationReadyEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication
@EnableCaching
public class AdminApplication {

    public static void main(String[] args) {
        System.out.println("***************************************************************");
        System.out.println("启动adminBackend...");

        SpringApplication app = new SpringApplication(AdminApplication.class);

        app.addListeners(new ApplicationReadyEventListener());
        app.run(args);
    }


}